package com.entmanage.base.oa.mapper;

import java.util.List;
import com.entmanage.base.oa.domain.OaLeaveApply;
import io.lettuce.core.dynamic.annotation.Param;

/**
 * 请假申请Mapper接口
 * 
 * @author lsq
 * @date 2025-09-10
 */
public interface OaLeaveApplyMapper 
{
    /**
     * 查询请假申请
     * 
     * @param applyId 请假申请主键
     * @return 请假申请
     */
    public OaLeaveApply selectOaLeaveApplyByApplyId(Long applyId);

    /**
     * 查询请假申请列表
     * 
     * @param oaLeaveApply 请假申请
     * @return 请假申请集合
     */
    public List<OaLeaveApply> selectOaLeaveApplyList(OaLeaveApply oaLeaveApply);

    /**
     * 新增请假申请
     * 
     * @param oaLeaveApply 请假申请
     * @return 结果
     */
    public int insertOaLeaveApply(OaLeaveApply oaLeaveApply);

    /**
     * 修改请假申请
     * 
     * @param oaLeaveApply 请假申请
     * @return 结果
     */
    public int updateOaLeaveApply(OaLeaveApply oaLeaveApply);

    /**
     * 删除请假申请
     * 
     * @param applyId 请假申请主键
     * @return 结果
     */
    public int deleteOaLeaveApplyByApplyId(Long applyId);

    /**
     * 批量删除请假申请
     * 
     * @param applyIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOaLeaveApplyByApplyIds(Long[] applyIds);

    List<OaLeaveApply> selectByApproverId(@Param("approverId") Long approverId);

    List<OaLeaveApply> selectByCcId(@Param("ccId") Long currentUserId);
}
